<h2>Kategorie artykułów</h2>
<ul>
<?php
foreach($categories as $category) {
    echo('<li><a href="/article_categories/show/'.$category['ArticleCategory']['id'].'/'.slug($category['ArticleCategory']['name']).'">'.$category['ArticleCategory']['name'].'</a></li>');
}
?>
</ul>
<hr />